package com.yswy.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.common.zfbOrder.ZfbKeyVo;
import com.yswy.domain.entity.PayOrderZfbLog;
import com.yswy.domain.entity.ZfbPayKey;

public interface ZfbPayKeyService extends IService<ZfbPayKey>{

    /**
     * @Description:  轮询切换支付宝appid账号
     * @date 2022/3/16 12:00
     * @return: void
     */
    ZfbKeyVo cutAppId(String payMethod);

    /**
     * @Description:  检测当前账号是否超出付款金额
     * @date 2022/3/16 12:00
     * @return: void
     */
    boolean cashAppId(ZfbPayKey zfbPayKey ,String payMethod);

    /**
     * @Description:  记录支付宝收款金额
     * @date 2022/3/16 12:00
     * @return: void
     */
    void recordPayMoney(Integer amount , String appId);

    /**
     * @Description:  查询支付宝
     * @date 2022/3/16 12:00
     * @return: void
     */
    ZfbKeyVo getZfbKeyVo(Long id  ,ZfbPayKey zfbPayKey);
    ZfbKeyVo getZfbKeyVo(PayOrderZfbLog payOrderZfbLog);
}



